<!DOCTYPE html>
<html lang="en"
      xmlns:th=http://www.thymeleaf.org>
<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
  <!-- =====  CSS  ===== -->
  <link rel="stylesheet" type="text/css" href="css/font-awesome.min.css" />
  <link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
  <link rel="stylesheet" type="text/css" href="css/style.css">
  <link rel="stylesheet" type="text/css" href="css/magnific-popup.css">
  <link rel="stylesheet" type="text/css" href="css/owl.carousel.css">
  <link rel="shortcut icon" href="images/favicon.png">
  <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
  <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head>
<body>

<div th:replace="~{template::topbar}"></div>
<div style="margin-top: 10px" class="container">
  <div class="row">
    <div class="col-md-2">
      <h3>个人信息</h3>
    </div>
    <div class="col-md-8">
      <ul>
        <li>
          <table class="table">
            <tbody>
            <tr>
              <td class="text-right"><strong>用户名：</strong></td>
              <td class="text-right" th:text="${user.getUsername()}"></td>
            </tr>
            <tr>
              <td class="text-right"><strong>手机号码</strong></td>
              <td class="text-right" th:text="${user.getPhoneNumber()}"></td>
            </tr>
            <tr>
              <td class="text-right"><strong>收货地址</strong></td>
              <td class="text-right" th:text="${user.getAddress()}"></td>
            </tr>
            <tr>
              <td class="text-right"><strong>会员等级</strong></td>
              <td class="text-right" th:text="${user.getRoles()}=='user'?'普通用户':'管理员'"></td>
            </tr>
            </tbody>
          </table>
        </li>
      </ul>
    </div>
    <div class="col-md-2"></div>
  </div>
</div>
<script src="js/jQuery_v3.1.1.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.magnific-popup.js"></script>
<script src="js/jquery.firstVisitPopup.js"></script>
<script src="js/custom.js"></script>
</body>
</html>